import Layout from '@/layout'
const params = {
  path: '/system',
  component: Layout,
  meta: { title: 'system', icon: 'form' },
  name: 'System',
  children: [
    {
      path: 'datum',
      redirect: '/system/datum/info',
      name: 'Datum',
      meta: { title: 'datumInfo' },
      component: () => import('@/views/system/datum'),
      children: [
        {
          hidden: true,
          path: 'info',
          component: () => import('@/views/system/datum/children/info'),
          meta: { title: 'basicInfo' },
          name: 'DatumInfo'
        },
        {
          path: 'contact',
          component: () => import('@/views/system/datum/children/concat'),
          meta: { title: 'contactUs' },
          name: 'DatumContact',
          hidden: true
        },
        // {
        //   path: 'imgSetting',
        //   component: () => import('@/views/system/datum/children/imgSetting'),
        //   meta: { title: '图片设置', icon: 'form' },
        //   name: 'ImgSetting',
        //   hidden: true
        // },
        {
          path: 'gathering',
          component: () => import('@/views/system/datum/children/gathering'),
          meta: { title: 'gathering' },
          name: 'DatumGathering',
          hidden: true
        }
      ]
    },
    {
      path: 'attestation',
      name: 'Attestation',
      meta: { title: 'storeAuth' },
      component: () => import('@/views/system/attestation')
    },
    {
      path: 'condition',
      name: 'Condition',
      meta: { title: 'condition' },
      component: () => import('@/views/system/condition')
    },
    {
      path: 'params',
      name: 'Params',
      meta: { title: 'paramsSetting' },
      component: () => import('@/views/system/params'),
      children: [
        {
          path: 'hotel',
          name: 'ParamsHotel',
          component: () => import('@/views/system/params/children/hotel'),
          meta: { title: 'settingParams', roles: ['hotel'] },
          redirect: '/system/params/hotel/room',
          children: [
            {
              path: 'room',
              name: 'ParamsHotelRoom',
              component: () => import('@/views/system/params/children/hotel/children/room.vue'),
              meta: { title: 'room' },
              hidden: true
            },
            {
              path: 'timeFrame',
              name: 'ParamsHotelTimeFrame',
              component: () => import('@/views/system/params/children/hotel/children/timeFrame.vue'),
              meta: { title: 'timer' },
              hidden: true
            },
            {
              path: 'storedValue',
              name: 'ParamsHotelStoredValue',
              component: () => import('@/views/system/params/children/hotel/children/storedValue.vue'),
              meta: { title: 'storedValue' },
              hidden: true
            },
            {
              path: 'convenienceStore',
              name: 'ParamsHotelConvenienceStore',
              component: () => import('@/views/system/params/children/hotel/children/convenienceStore.vue'),
              meta: { title: 'convenience' },
              hidden: true
            }
          ]
        },
        {
          path: 'cate',
          name: 'ParamsCate',
          component: () => import('@/views/system/params/children/cate'),
          meta: { title: 'settingParams', roles: ['cate'] },
          redirect: '/system/params/cate/storedValue',
          children: [
            {
              path: 'storedValue',
              name: 'ParamsCateStoredValue',
              component: () => import('@/views/system/params/children/cate/children/storedValue.vue'),
              meta: { title: 'storedValue' },
              hidden: true
            },
            {
              path: 'convenienceStore',
              name: 'ParamsCateConvenienceStore',
              component: () => import('@/views/system/params/children/cate/children/convenienceStore.vue'),
              meta: { title: 'convenience' },
              hidden: true
            }
          ]
        },
        {
          path: 'ktv',
          name: 'ParamsKtv',
          component: () => import('@/views/system/params/children/ktv'),
          meta: { title: 'settingParams', roles: ['ktv'] },
          redirect: '/system/params/ktv/storedValue',
          children: [
            {
              path: 'storedValue',
              name: 'ParamsKtvStoredValue',
              component: () => import('@/views/system/params/children/ktv/children/storedValue.vue'),
              meta: { title: 'storedValue' },
              hidden: true
            },
            {
              path: 'convenienceStore',
              name: 'ParamsKtvConvenienceStore',
              component: () => import('@/views/system/params/children/ktv/children/convenienceStore.vue'),
              meta: { title: 'convenience' },
              hidden: true
            }
          ]
        },
        {
          path: 'scenic',
          name: 'ParamsScenic',
          component: () => import('@/views/system/params/children/scenic'),
          meta: { title: 'settingParams', roles: ['scenic'] },
          redirect: '/system/params/scenic/setting',
          children: [
            {
              path: 'storedValue',
              name: 'ParamsScenicStoredValue',
              component: () => import('@/views/system/params/children/scenic/children/storedValue.vue'),
              meta: { title: 'storedValue' },
              hidden: true
            },
            {
              path: 'setting',
              name: 'ParamsScenicSetting',
              component: () => import('@/views/system/params/children/scenic/children/setting.vue'),
              meta: { title: 'setting' },
              hidden: true
            },
            {
              path: 'convenienceStore',
              name: 'ParamsScenicConvenienceStore',
              component: () => import('@/views/system/params/children/scenic/children/convenienceStore.vue'),
              meta: { title: 'convenience' },
              hidden: true
            }
          ]
        },
        {
          path: 'use',
          name: 'ParamsUse',
          component: () => import('@/views/system/params/children/use'),
          meta: { title: 'settingParams', roles: ['other'] },
          redirect: '/system/params/use/storedValue',
          children: [
            {
              path: 'storedValue',
              name: 'ParamsUseStoredValue',
              component: () => import('@/views/system/params/children/use/children/storedValue.vue'),
              meta: { title: 'storedValue' },
              hidden: true
            },
            {
              path: 'convenienceStore',
              name: 'ParamsUseConvenienceStore',
              component: () => import('@/views/system/params/children/use/children/convenienceStore.vue'),
              meta: { title: 'convenience' },
              hidden: true
            }
          ]
        }
      ]
    },
    {
      path: 'scenic',
      name: 'Scenic',
      component: () => import('@/views/system/project/scenic/scenic.vue'),
      meta: { title: 'project', noCache: true, roles: ['scenic'] },
      children: [
        {
          path: 'detail',
          name: 'ScenicDetail',
          component: () => import('@/views/system/project/scenic/children/detail.vue'),
          meta: { title: 'scenicDetails' },
          hidden: true
        },
        {
          path: 'edit',
          name: 'ScenicEdit',
          component: () => import('@/views/system/project/scenic/children/edit.vue'),
          meta: { title: 'scenicEdit' },
          hidden: true
        },
        {
          path: 'add',
          name: 'ScenicAdd',
          component: () => import('@/views/system/project/scenic/children/add.vue'),
          meta: { title: 'scenicAdd' },
          hidden: true
        }
      ]
    }
  ]
}

export default params
